package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.query.PSQueryObject;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.service.IProductServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("productService")
public class ProductServiceContoller {

    @Autowired
    private IProductServiceService service;

    @RequestMapping("list")
    @ResponseBody
    public PageResult list(PSQueryObject qo){
        return service.queryPage(qo);
    }
}
